import request from "@/utils/request";

//获取所有资源分类别列表
export const  getAllResourceList=(limitPageBo)=>{
    // console.log("limitPageBo:",limitPageBo);
    return request({
        method: 'post',
        url: `api/x-source/select_source_pages`,
        data: limitPageBo
    })
}

//新建资源领域类别信息
export  const resourceCreate=(data)=>{
    return request({
        method: 'post',
        url: 'api/x-source/add_source',
        data: data
    })
}

//编辑资源领域类别信息
export  const resourceUpdate=(data)=>{
    return request({
        method: 'put',
        url: 'api/x-source/update_source',
        data: data
    })
}

//单个资源领域类别信息
export  const gainByIdResource=(resourceId=0)=>{
    return request({
        method: 'get',
        url: `api/x-source/get_one_source/${resourceId}`,
    })
}

//删除资源领域对象
export  const deleteByIdResource=(resourceId=0)=>{
    return request({
        method: 'delete',
        url: `api/x-source/delete_source/${resourceId}`,
    })
}

//资源领域下拉列表数据
export  const gainResourceSelects=()=>{
    return request({
        method: 'get',
        url: 'api/x-source/select_sources',
    })
}

